﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using Streaming_Service.User;

namespace Streaming_Service.Media {
    [DataContract]
    public class RentSession {
        // The UserSession used to identify which user the session is for.
        [DataMember]
        public int UserId { get; set; }

        // The url where the media can be downloaded/streamed from.
        [DataMember]
        public MovieEntry Movie { get; set; }

        [DataMember]
        public bool HD { get; set; }

        // The start of the rent session.
        [DataMember]
        public DateTime SessionStart { get; set; }

        // The end of the rent session.
        [DataMember]
        public DateTime SessionEnd { get; set; }

        // The price they paid.
        [DataMember]
        public decimal Price { get; set; }
    }
}